import Mock from 'mockjs'

// var Mock = require('mockjs')
var data = Mock.mock({
    'data|1-30': [{
        'id|+1': 1,
        'kind|1':['男装','女装','工装'],
        name:'@cname()',
        "object|1": [
             "北京市",
             "天津市",
             "河北省",
             "山西省"
        ]
    }]
})

Mock.mock('/getproadd','post',(config) => {
    console.log(JSON.parse(config.body));

    data.data.push(JSON.parse(config.body))
    return data
})